package org.myspring.dis.byjava;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//使用Configuration / @Bean 进行注入，无xml
@Configuration
public class HelloWorldConfig {

	@Bean // 相当于在xml中配置了<bean></bean>
	public HelloWorld helloWorld() {
		return new HelloWorld();
	}
}
